define(function () {
    return function (res, cont) {
        let str = "";
        for (let i = 0; i < res.length; i++) {
            str += `<div class="gs" id="${res[i].id}">
            <a href="../html/details.html?${res[i].id}"><img src="${res[i].img1} "alt=""></a>
            <p><a href="">${res[i].title}</a> </p >
            <p><a href="">${res[i].brand}</a> </p>
            <p>${res[i].money}</p><span class="add">加入购物车<span>
        </div> `
        }
        cont.html(str);
    }
})